<template>
  <a-drawer
    width="576"
    :title="formTitle"
    :label-col="4"
    :wrapper-col="14"
    :visible="open"
    :body-style="{height:'calc(100vh - 100px)',overflow:'auto'}"
    @close="cancel">
    <a-form-model ref="form" :model="form" :rules="rules" layout="vertical">
      <a-spin :spinning="spinning" :delay="delayTime" tip="Loading...">
        <a-row :gutter="32">
          <a-col :span="24">
            <a-form-model-item label="用户ID" prop="userId">
              <a-input v-model="form.userId" placeholder="请输入用户ID"/>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="帖子ID" prop="postId">
              <a-input v-model="form.postId" placeholder="请输入帖子ID"/>
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-spin>
      <div class="bottom-control">
        <a-space>
          <a-button :disabled="disabled" @click="cancel">
            取消
          </a-button>
          <a-button type="primary" :disabled="disabled" @click="submitForm(true)">
            保存
          </a-button>
        </a-space>
      </div>
    </a-form-model>
  </a-drawer>
</template>
<script>
import UserLikeEditForm from './UserLikeForm'
export default {
  ...UserLikeEditForm
}
</script>
